/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-07-23
 * Time: 23:35
 */
public class Test6 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
           while (true){
               System.out.println("hello thread");
           }
        });
        t.setDaemon(true);
        t.start();
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
